package frame

import (
	"gitee.com/lipore/go-nio/pkg/buffer"
)

type CodeC interface {
	Decode(buffer *buffer.Buffer) (Frame, bool, error)
	Encode(f Frame) ([]byte, bool)
}
